class CreateMachines < ActiveRecord::Migration
  def self.up
    create_table :machines do |t|
      t.column :ip_address, :string, :length => 15
      t.column :mac_address, :string, :length => 17
      t.column :operating_system. :string
      t.column :hardware, :string
      t.column :host_name, :string
      t.column :user, :string, :length => 50
      t.column :uptime, :string, :length => 50
      t.column :date_added, :datetime
      t.column :last_time_checked, :datetime
      t.column :notes, :text
    end
  end

  def self.down
    drop_table :machines
  end
end
